package com.sumer.brain.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sumer.brain.sys.model.entity.SysDictData;
import com.sumer.brain.sys.service.SysDictDataService;
import com.sumer.brain.sys.mapper.SysDictDataMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Arrays;

@Service
@RequiredArgsConstructor
public class SysDictDataServiceImpl extends ServiceImpl<SysDictDataMapper, SysDictData> implements SysDictDataService {

    @Override
    public Boolean delByIds(String ids) {
        String[] split = ids.split(",");
        return baseMapper.deleteBatchIds(Arrays.asList(split)) > 0;
    }
}




